package com.guigu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserBean {
    private int user_Id;
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date birthday;
    private String gender;
    private String user_name;
    private int age;
    private String remark;
    private String e_mail;
    private String telephone;
    private String address;
    private String idcard;

    @Override
    public String toString() {
        return "UserBean{" +
                "user_Id=" + user_Id +
                ", birthday=" + birthday +
                ", gender='" + gender + '\'' +
                ", user_name='" + user_name + '\'' +
                ", age=" + age +
                ", remark='" + remark + '\'' +
                ", e_mail='" + e_mail + '\'' +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", idcard='" + idcard + '\'' +
                '}';
    }
}
